package com.xuerhua.yxt.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xuerhua.yxt.model.SchoolbusLine;
import com.xuerhua.yxt.reqVo.SchoolbusQueryVO;
import com.xuerhua.yxt.view.SchoolbusLineView;
import com.xuerhua.yxt.view.TeacherPhoneView;

public interface SchoolbusLineMapper {

    int insertSelective(SchoolbusLine record);

    SchoolbusLine selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SchoolbusLine record);

    int isTeacherLine(SchoolbusQueryVO vo);
    
    List<SchoolbusLine> selectLineByTeacherId(Integer teacherId);
    
    List<SchoolbusLine> selectList();
    
    SchoolbusLineView selectViewDetailByLineId(Integer lineId);
    
    List<TeacherPhoneView> selectTeacherPhoneForSchoolbus(
    		@Param("grade") Integer grade, @Param("clazz") Integer clazz);
    
    List<SchoolbusLine> selectLineForParent(String openid);
    
}